package com.schedule.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.schedule.dao.FriendsMapper;
import com.schedule.entity.Friends;
import com.schedule.entity.User;

@Service
public class FriendsServiceImpI implements FriendsService {
	@Autowired
	FriendsMapper friendsMapper;

	public void AddFriends(Friends friends) {
		friendsMapper.AddFriends(friends);

	}


	public List<User> FindFriends(String user) {
		
		return friendsMapper.FindFriends(user);
	}


	


	public void deleteFriends(String user, String phone) {
		//System.out.println(user+"  1   "+phone);
		friendsMapper.deleteFriends(user, phone);
		
	}


	public void deleteFriends2(String send, String phone) {
		//System.out.println(send+" "+phone);
		friendsMapper.deleteFriends2(send, phone);
		
	}

}
